import React, { Component } from 'react';
import { MyContent  } from '../store'
class Billlist extends Component {
	render() {
		const { list } = this.context
		return (
			<div>
				{
					list.length > 0 && list.map((v, i) => {
						return (
							<dl>
								<dt>
									<p>{v.name}</p>
								</dt>
								<dd>
									<p>类型： { v.type }----- 金额： { v.money }</p>
									<p>备注： { v.tip }</p>
								</dd>
							</dl>
						)
					})
				}
			</div>
		);
	}
}


Billlist.contextType = MyContent


export default Billlist;
